package com.swt.testdemo.form;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.Min;

/**
 * @author BleethNie
 * @version 1.0
 * @date 2020/11/18 15:20
 **/
@Data
@ApiModel(value = "查询用户列表表单")
public class UserListForm {

    @ApiModelProperty(value = "页码",example = "1")
    @Min(1)
    private Integer page;


    @ApiModelProperty(value = "每页条数",example = "10")
    @Range(min = 5,max = 50,message = "每页条数必须在5到50之间")
    private Integer limit;

    @ApiModelProperty(value = "用户过滤",example = "admin")
    private String userFilter;

    @ApiModelProperty(value = "地区过滤",example = "13")
    private String areaFilter;

    @ApiModelProperty(value = "状态过滤",example = "1")
    private String statusFilter;




}
